package progeny;

public class Gene {
	
	final Trait type;
	
	public Gene(){
		this("A");
	}
	
	public Gene(String s){
		this(new Trait(s));
	}
	
	public Gene(Trait t){
		type = t;
	}
	
	public boolean equals(Gene other){
		return type.equals(other.type);
	}
	
	public int dominantOver(Gene other){
		return -1 * type.dominantOver(other.type);
	}
	
	public String toString(){
		return type.toString();
	}
	
	public String getCharacteristic(){
		return type.getCharacteristic();
	}
}
